package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class Teacher {
    String name;
    //给学生算总分
    public int zongfen(Student s){
        s.show();
        System.out.println("老师"+name+"给学生"+s.name+"算总分：");

        int total=s.chinese+s.zonghe+s.english+s.math;

        return total;
    }
}
